import google
import sys
from key import *

google.LICENSE_KEY = lkey
query = sys.argv[1]
query = unicode(query, 'utf-8')
data = google.doGoogleSearch(query)
# get url
print data.results[0].URL
#get title
print data.results[0].summary[:68]
for result in data.results:
	print result.title.encode('utf-8')
#page = google.doGetCachedPage(data.results[0].URL)
#print page
